package com.pda.xinma.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.pda.xinma.R;
import com.pda.xinma.bean.ArtificialListBean;
import com.pda.xinma.bean.EndFaceListBean;
import com.wangshen.base.ui.mvp.base.adapter.BaseAdapter;

import java.util.List;

public class EndFaceAdapter extends BaseAdapter<ArtificialListBean.DeliveryVosBean> {
    public EndFaceAdapter(int layoutResId, @Nullable List<ArtificialListBean.DeliveryVosBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ArtificialListBean.DeliveryVosBean item) {
        super.convert(helper, item);
        helper.setText(R.id.tv_productModelAndBatch,item.getProOrderNo());
        helper.setText(R.id.tv_time,item.getStartTime());
        //helper.setText(R.id.tv_latheName,item.getStorageBinIds());
        helper.setText(R.id.tv_processName,item.getProcessName());
        helper.setText(R.id.tv_articleId,item.getArticleId());
        helper.setText(R.id.tv_model,item.getModel());
        helper.setText(R.id.tv_grade,item.getGrade());
        helper.setText(R.id.tv_planNum,item.getPlanNum()+"");
        helper.setText(R.id.tv_status,item.getIndexNo()+"");
    }
}
